package com.qf.point.controller;

import com.qf.api.point.dto.PointRetryDTO;
import com.qf.common.core.annotation.NoLogin;
import com.qf.common.core.utils.R;
import com.qf.point.service.PointRetryService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/4/7
 */
@RestController
@RequestMapping("/user/point/retry")
public class PointRetryController {

    @Resource
    private PointRetryService pointRetryService;
    @NoLogin
    @PostMapping("/add")
    public R<?> addPointRetry(@RequestBody PointRetryDTO pointRetryDTO){
        pointRetryService.addPoint(pointRetryDTO);
        return R.ok("成功");
    }
}
